import 'dart:async';
//import 'dart:io';
import 'package:dio/dio.dart';
import 'package:iea/provider/base/base_api_provider.dart';
import 'package:iea/provider/base/base_resp.dart';
import 'package:iea/provider/base/network_config.dart';

class PersonalPageApiProvider extends BaseApiProvider {
  /*
  *  上传头像
  * @links
  */
  Future<BaseResp> uploadImgUrl(FormData formData) async {
    final response =
        await postFile(NetworkConfig.personalCenterPageApi['uploadImgUrl'], formData);
    return super.verifyMiddleWare(response);
  }

  /*
  *  修改个人信息
  * @links
  */
  Future<BaseResp> updateUserInformation(Map<String, dynamic> params) async {
    final response = await post(NetworkConfig.personalCenterPageApi['updateUserInformation'], params);
    return super.verifyMiddleWare(response);
  }
}
